<?php 
	if (empty($_GET['sid']))
	{
		$this->redirect(array('sudoku/index'));
	}
?>
<div class="container" style="width:600px;height:400px;">
    <div class="jumbotron" onselectstart="return false;" >
		<form method="post" action="<?php echo Yii::app()->request->baseUrl?>/sudoku/editsudoku">
			<div class="container">
				<div id="getsudoku">
					<button class="btn btn-success" onclick="sudokuAddSubmit()">保存</button>
					<a class="btn btn-info" href="<?php echo Yii::app()->request->baseUrl?>/sudoku/sudokumanagepage">返回</a>
					<input type="text" name="name" class="form-control" style="width:300px" placeholder="好的数独得有个好名字" required value="<?php echo Sudoku::model()->findByPk($_GET['sid'])->info;?>"/>
					<input type="text" id="content" name="content" class="form-control" style="display:none" placeholder="sudokucontent" />
					<input type="text" name="sid" style="display:none" value="<?php echo Sudoku::model()->findByPk($_GET['sid'])->sudoku_id;?>"></input>
					<?php 
						$this->getEditSudoku($_GET['sid']);
					?>
				</div>	
			</div>
			
			<div id="num" style="position:absolute;display:none">
					<button type="button" class="btn btn-default" onclick="hideNum()">
						<span class="glyphicon glyphicon-remove"></span>
					</button>	
					<?php $this->getNum();?>	
			</div>
		</form>
	</div>
	<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/game.js"></script>
</div>

